How to check whether a module can be opened in edit mode?

Hi,

I am having hard time with jumping over locked modules from scripts, is there a reliable way to see whether a module is already locked by someone?

I did a little digging around, and found some posts about this issue from back in 2009.

Unfortunately nothing seems to work now, neither isLocked() nor opening the module and checking whether the handle is null.

 


valikund - Mon Jun 27 08:59:12 EDT 2016

Re: How to check whether a module can be opened in edit mode?
DOORSHAM - Tue Jun 28 05:33:04 EDT 2016

If my memory serves me, you have to try to edit and trap the error then respond accordingly -- someone may have developed a better approach but if I recall the mentioned method worked.